<?php
/**
{
    "coursePeopleId": "INT //人数ID",
    "coursePeople": "VARCHAR //上课人数",
    "sort": "INT //排序",
    "status": "TINYINT //状态@status; 3::有效::@admin; 88::删除::@admin; "
}
 */

class CoursePeople extends Base
{
    
	public $coursePeopleId= '';//人数ID
	public $coursePeople= NULL;//上课人数
	public $sort= "0";//排序
	public $status= "3";//状态@status;3::有效::@admin;88::删除::@admin;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_course_people';
    }
    
    public  function key(){
        return 'coursePeopleId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'CoursePeople';
    }
    
    public  function field()
    {
        return array (  'coursePeopleId' =>   array (    0 => 'INT',    1 => 11,    2 => '人数ID',  ),  'coursePeople' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '上课人数',  ),  'sort' =>   array (    0 => 'INT',    1 => 11,    2 => '排序',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;88::删除::@admin;',  ),);
    }


}